import { defineStore } from 'pinia'

export const useCountStore = defineStore('count', {

    actions: {
        increment(value: number) {
            // console.log("increment被调用了",value)
            this.sum += value
        },
        jianshao(value:number){
            this.sum-=value;
        }
    },
    state() {
        return {
            sum: 6
        }
    }
})

// export default useCountStore